* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.encabezado {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 10;
}

.encabezado h2 {
    font-size: 2vh;
    color: #1a1a1a;
}

.logo {
    width: 128px;
}
.mujeres{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pag-contacto{
    margin: 20px;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    background-color: #e91e8c;
    border-radius: 30px;
}

/* Header Hero Section - CORREGIDO */
.hero {
    height: 130vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

/* Video de fondo - CORREGIDO */
.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Capa oscura sobre el video */
.hero .capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    animation: slideUp 1s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-weight: 700;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Formulario - MEJORADO */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: scaleIn 0.5s ease-out 0.5s backwards;
    backdrop-filter: blur(10px);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-container textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #e91e8c;
    box-shadow: 0 0 15px rgba(233, 30, 140, 0.2);
    transform: translateY(-2px);
}

/* Sección Información */
.info-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-in;
}

.info-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #333;
    margin-bottom: 20px;
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 10px;
}

.info-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #666;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.info-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.info-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #e91e8c;
    margin-bottom: 20px;
    text-decoration: underline;
}

.info-card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
}

/* Sección Simulador */
.simulador-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffb6d9 0%, #ffd4e5 100%);
}

.simulador-container {
    max-width: 1200px;
    margin: 0 auto;
}

.simulador-container h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    text-decoration: underline;
}

.simulador-info {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.process-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    min-width: 180px;
    animation: bounceIn 0.6s ease-out;
    flex: 1;
    max-width: 250px;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.process-arrow {
    font-size: 2rem;
    color: #89c402;
    font-weight: bold;
}
/* SOLUCIÓN DEFINITIVA PARA LA TABLA */
.tabla-simulador {
    background: #e91e8c;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.tabla-header {
    background: #d91a7e;
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
    text-decoration: underline;
}

/* Resetear cualquier display anterior */
.tabla-simulador table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    display: table !important;
}

.tabla-simulador thead {
    display: table-header-group !important;
}

.tabla-simulador tbody {
    display: table-row-group !important;
}

.tabla-simulador tr {
    display: table-row !important;
}

.tabla-simulador th,
.tabla-simulador td {
    display: table-cell !important;
}

.tabla-simulador th {
    background: #e91e8c;
    color: white;
    padding: 20px 10px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    text-align: center;
}

.tabla-simulador td {
    padding: 20px 10px;
    text-align: center;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    border-bottom: 2px solid #ffd4e5;
}

.tabla-simulador tbody tr:nth-child(even) td {
    background: #ffd4e5;
}

.tabla-simulador tbody tr:nth-child(odd) td {
    background: white;
}

.tabla-simulador tbody tr:hover td {
    background: #ffb6d9;
    transition: background 0.3s ease;
}

.tabla-note {
    text-align: center;
    padding: 30px 20px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    background: white;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .tabla-simulador {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tabla-simulador table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .tabla-simulador table {
        min-width: 500px;
    }
}
/* Sección Servicios */
.servicios-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
}

.servicios-container h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    text-decoration: underline;
}

.servicios-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #666;
    margin-bottom: 60px;
}

.servicio-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    animation: fadeIn 0.8s ease-in;
}

.servicio-content {
    padding: 40px 20px;
}

.servicio-content h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    text-decoration: underline;
}

.servicio-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: #555;
}

.servicio-image {
    height: 300px;
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servicio-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Opiniones */
.opiniones-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    color: white;
}

.opiniones-container {
    max-width: 1200px;
    margin: 0 auto;
}

.opiniones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.opinion-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.opinion-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.opinion-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 20px;
}

.opinion-author {
    font-weight: bold;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.cta-button {
    display: block;
    text-align: center;
    padding: 20px 40px;
    background: white;
    color: #e91e8c;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #aaa;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
}

.footer-section a:hover {
    color: #e91e8c;
}

.inicio-button {
    background: #e91e8c;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: bold;
}

.inicio-button:hover {
    background: #ff6bb5;
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #333;
    margin-top: 40px;
    color: #666;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.cn {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.contactanos {
    text-decoration: none;
    text-transform: uppercase;
    color: #FFF;
    font-weight: bold;
    background-color: #d91a7e;
    border-radius: 20px;
    padding: 20px 40px;
    margin: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contactanos:hover {
    padding: 25px 45px;
    background-color: #e91e8c;
    transform: scale(1.05);
}

/* Responsive - MEJORADO */
@media (max-width: 1024px) {
    .servicio-box {
        gap: 30px;
    }
    
    .servicio-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .encabezado {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .encabezado h2 {
        font-size: 1.2rem;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .form-container {
        padding: 25px 20px;
    }
    
    .info-section,
    .simulador-section,
    .servicios-section,
    .opiniones-section {
        padding: 60px 20px;
    }

    .servicio-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .servicio-box:nth-child(even) .servicio-image {
        order: 1;
    }
    
    .servicio-box:nth-child(even) .servicio-content {
        order: 2;
    }

    .process-diagram {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
        font-size: 2.5rem;
    }
    
    .process-step {
        max-width: 100%;
        width: 100%;
    }

    /* Hacer la tabla scrolleable en móvil */
    .tabla-simulador {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabla-simulador table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    th, td {
        padding: 12px 8px;
        white-space: nowrap;
    }
    
    .servicio-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .form-container input,
    .form-container textarea {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .info-grid,
    .opiniones-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-button,
    .contactanos,
    .simulador {
        padding: 15px 25px;
        font-size: 0.9rem;
    }
    
    .contactanos:hover {
        padding: 18px 28px;
    }
    
    /* Tabla más pequeña en móviles pequeños */
    .tabla-simulador table {
        min-width: 500px;
    }
    
    .tabla-header {
        font-size: 1.3rem;
        padding: 20px 15px;
    }
    
    th {
        font-size: 0.85rem;
        padding: 10px 6px;
    }
    
    td {
        font-size: 0.8rem;
        padding: 10px 6px;
    }
}