/* ===================================
   ESTILOS GENERALES
   =================================== */

/* Reset básico */
* {
    box-sizing: border-box;
}

/* ===================================
   PÁGINA INICIO - Características
   =================================== */

.caracteristicas-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.caracteristica-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.caracteristica-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.15);
    border-color: #0066cc;
}

.caracteristica-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caracteristica-icon img {
    width: 54px !important;
    height: 54px !important;
    object-fit: contain;
}

.caracteristica-texto {
    flex: 1;
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

.caracteristica-texto strong {
    color: #0066cc;
}

/* Asegurar tamaño de imágenes en tablas */
table img {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    display: inline-block !important;
}

/* ===================================
   PÁGINA HOSTING - Tarjetas de Planes
   =================================== */

.planes-container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
}

.planes-titulo {
    text-align: center;
    font-size: 2.5em;
    color: #003366;
    margin-bottom: 50px;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 3px solid #e0e0e0;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,102,204,0.2);
}

.plan-card.destacado {
    border-color: #0066cc;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transform: scale(1.05);
}

.plan-card.destacado .plan-badge {
    background: #0066cc;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.plan-nombre {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 20px;
    font-weight: bold;
}

.plan-precios {
    margin: 25px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.plan-precio {
    display: block;
    margin: 10px 0;
    font-size: 1em;
    color: #333;
}

.plan-precio strong {
    color: #0066cc;
    font-size: 1.2em;
}

.plan-caracteristicas {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.plan-caracteristicas li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.plan-caracteristicas li:before {
    content: "✓ ";
    color: #0066cc;
    font-weight: bold;
    margin-right: 10px;
}

.plan-boton {
    display: inline-block;
    padding: 12px 35px;
    background: #0066cc;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.plan-boton:hover {
    background: #ffeb3b;
    color: #333 !important;
    text-decoration: none !important;
    transform: scale(1.05);
}

.plan-boton:active {
    background: #fdd835;
}

/* ===================================
   PÁGINAS DE PLANES INDIVIDUALES
   (Básico, Profesional, Empresarial)
   =================================== */

.plan-page {
    max-width: 900px;
    margin: 5px auto;
    padding: 10px;
}

.plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.plan-header h1 {
    font-size: 2.5em;
    color: #003366;
    margin-bottom: 10px;
}

.plan-subtitle {
    font-size: 1.2em;
    color: #666;
}

.plan-badge {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 8px 20px 2px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-content {
    background: white;
    border-radius: 15px;
    padding: 20px 40px 0px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 2px solid #0066cc;
}

.caracteristicas-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.caracteristicas-box h3 {
    color: #003366;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.caracteristicas-lista {
    list-style: none;
    padding: 0;
}

.caracteristicas-lista li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.1em;
}

.caracteristicas-lista li:before {
    content: "✓ ";
    color: #0066cc;
    font-weight: bold;
    margin-right: 10px;
}

/* Selector de Precios */
.precio-selector {
    background: #e3f2fd;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.precio-selector h3 {
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.precio-opciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.precio-opcion {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.precio-opcion:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.2);
}

.precio-opcion.activo {
    border-color: #0066cc;
    background: #0066cc;
    color: white;
}

.precio-opcion .periodo {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.precio-opcion .precio {
    font-size: 2em;
    font-weight: bold;
    color: #0066cc;
}

.precio-opcion.activo .precio {
    color: white;
}

/* Formulario de Datos */
.formulario-datos {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.formulario-datos h3 {
    color: #003366;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group.required label:after {
    content: " *";
    color: red;
}

.form-group small {
    display: block;
    color: #666;
    margin-top: 5px;
    font-size: 0.9em;
}

/* Checkbox y campos dinámicos */
.checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.verificar-dominio {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.verificar-dominio a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.verificar-dominio a:hover {
    text-decoration: underline;
}

#dominio-extension,
#campos-registro {
    display: none;
}

#dominio-extension.visible,
#campos-registro.visible {
    display: block;
    margin-top: 15px;
}

/* Botón de pago */
.boton-pagar {
    background: #0066cc;
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    margin-top: 20px;
}

.boton-pagar:hover {
    background: #ffeb3b;
    color: #333;
    transform: scale(1.02);
}

/* Info de pago */
.info-pago {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95em;
    color: #0c5460;
}

.info-pago strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Info adicional */
.info-adicional {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #ffc107;
}

.info-adicional strong {
    display: block;
    margin-bottom: 10px;
    color: #856404;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    /* Características Inicio */
    .caracteristicas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .caracteristica-item {
        padding: 20px;
    }

    /* Tarjetas de planes HOSTING */
    .planes-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.destacado {
        transform: scale(1);
    }

    .planes-titulo {
        font-size: 2em;
    }

    /* Páginas individuales */
    .plan-content {
        padding: 20px;
    }

    .precio-opciones {
        grid-template-columns: 1fr;
    }

    .plan-header h1 {
        font-size: 2em;
    }
}