:root {
    --azul-claro: #E0F7FA;
    --azul-medio: #80DEEA;
    --azul-oscuro: #0097A7;
    --turquesa: #26C6DA;
    --azul-profundo: #006064;
    --gris-oscuro: #2E2E2E;
    --gris-claro: #5C5C5C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--gris-oscuro);
    background-color: var(--azul-claro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--turquesa);
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenedor más estrecho para móviles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
}

/* Contenedor más ancho para pantallas muy grandes */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--turquesa);
    color: white;
    border: 2px solid var(--turquesa);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--azul-oscuro);
    border-color: var(--azul-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2), 0 0 30px rgba(52, 211, 153, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--azul-oscuro);
    border: 2px solid var(--turquesa);
}

.btn-secondary:hover {
    background-color: var(--azul-medio);
    color: var(--azul-profundo);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header-scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.logo-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--turquesa);
    font-style: italic;
    opacity: 0.9;
    margin-top: -2px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    opacity: 1;
}

.logo:hover .logo-image {
    transform: rotate(15deg) scale(1.1);
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gris-oscuro);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--azul-oscuro);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--turquesa);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gris-oscuro);
}

/* Animación de burbujas */
.bubbles-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(128, 222, 234, 0.3);
    box-shadow: 0 0 10px rgba(128, 222, 234, 0.5);
    animation: rise linear infinite;
    z-index: -1;
}

@keyframes rise {
    from {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }
    to {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Secciones */
section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background-color: var(--azul-claro);
}

.section-white {
    background-color: white;
}

.section-pattern {
    background-color: #f0f8ff;
    background-image: radial-gradient(var(--azul-medio) 1px, transparent 2px);
    background-size: 30px 30px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-centered {
    justify-content: center;
    text-align: center;
    background-image: 
        linear-gradient(rgba(224, 247, 250, 0.6), rgba(224, 247, 250, 0.3)),
        url('images/logo.png');
    background-size: cover, 400px auto;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    position: relative;
}

.hero-centered .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 120px;
}

.hero-centered .hero-content p {
    margin-top: 25px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    justify-content: flex-start;
}

.hero-centered .hero-buttons {
    justify-content: center;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 80%;
    background-color: var(--azul-medio);
    background-image: linear-gradient(45deg, var(--azul-medio), var(--turquesa));
    border-radius: 30px;
    overflow: hidden;
    box-shadow: -20px 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeIn 1.5s forwards 0.5s;
}

/* Hero para páginas internas */
.hero-page {
    height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-medio));
    position: relative;
    overflow: hidden;
}

.hero-content-page {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-content-page h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--azul-oscuro);
}

.hero-content-page p {
    font-size: 1.3rem;
    color: var(--gris-claro);
    max-width: 600px;
    margin: 0 auto;
}

/* Estado activo en navegación */
.nav-menu a.active {
    color: var(--azul-oscuro);
    font-weight: 700;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Sobre Mí */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 0 0 320px;
    width: 320px;
    height: 450px;
    background-color: var(--azul-medio);
    background-image: linear-gradient(135deg, var(--azul-medio), var(--turquesa));
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: all 1s ease;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--turquesa), var(--azul-claro), var(--turquesa));
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.005);
}

/* Marca de agua con logo de Pharus */
.about-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 80px;
    height: 80px;
    background-image: url('images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 3;
    pointer-events: none;
}

.about-image.in-view {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.about-content {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.about-content.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12), 0 0 20px rgba(52, 211, 153, 0.2);
}

.service-icon {
    height: 200px;
    background-color: var(--turquesa);
    background-image: linear-gradient(45deg, var(--azul-medio), var(--azul-oscuro));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Estilo específico para auriculoterapia - menos zoom */
img[alt="Auriculoterapia"].service-image {
    object-fit: contain;
    object-position: center;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-subtitle {
    font-size: 1rem;
    color: var(--turquesa);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 15px;
    margin-top: -10px;
    opacity: 0.9;
}

.service-benefits {
    margin: 15px 0;
}

.service-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-benefits li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-benefits li::before {
    content: "⚪";
    position: absolute;
    left: 0;
    color: var(--turquesa);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Tu Guía de Bienestar */
.section-description {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: var(--gris-claro);
}

.content-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--turquesa);
    background-color: transparent;
    color: var(--azul-oscuro);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--turquesa);
    color: white;
    transform: translateY(-2px);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 40px;
}

.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(74, 144, 164, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 164, 0.2);
}

.content-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.media-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #4A90A4, #6BA5B9);
}

.media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .media-item {
    transform: scale(1.05);
}

.play-overlay,
.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4A90A4;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.content-card:hover .play-overlay,
.content-card:hover .image-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.95);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    color: #2c5f3a;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    background: linear-gradient(45deg, #4A90A4, #6BA5B9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4A90A4;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-meta i {
    font-size: 0.8rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-header {
    background: linear-gradient(135deg, #4A90A4, #6BA5B9);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#modalCounter {
    font-weight: 500;
    font-size: 0.9rem;
}

.modal-body {
    padding: 0;
    text-align: center;
}

.media-container-modal {
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

#modalVideo {
    width: 100%;
    height: auto;
    max-height: 60vh;
}

#modalImage {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.modal-footer {
    padding: 25px 30px;
    background: #f8f9fa;
    text-align: center;
}

.modal-info {
    padding: 0 30px;
}

#modalDescription {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.consejos-content {
    margin-top: 25px;
}

.consejos-content h4 {
    color: var(--gris-oscuro);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--turquesa);
    padding-bottom: 8px;
}

#modalConsejos {
    list-style: none;
    padding: 0;
}

#modalConsejos li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
    color: #555;
    line-height: 1.5;
}

#modalConsejos li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--turquesa);
    font-weight: bold;
    font-size: 1.1rem;
}

#modalConsejos li:last-child {
    border-bottom: none;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#modalTags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#modalTags span {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.content-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    overflow: hidden;
    margin: 0;
}

.content-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.content-media {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.video-placeholder,
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--azul-medio), var(--turquesa));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.video-placeholder i,
.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .video-placeholder::before {
    opacity: 1;
}

.content-info {
    padding: 25px;
}

.content-info h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--gris-oscuro);
}

.content-info p {
    margin-bottom: 15px;
    color: var(--gris-claro);
    line-height: 1.6;
}

.content-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--azul-claro);
    color: var(--azul-oscuro);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.content-cta {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-medio));
    border-radius: 20px;
    margin-top: 30px;
}

.content-cta h3 {
    margin-bottom: 15px;
    color: var(--azul-oscuro);
}

.content-cta p {
    margin-bottom: 25px;
    color: var(--gris-claro);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Redes Sociales */
.cta-social-section {
    background: linear-gradient(135deg, var(--turquesa) 0%, var(--azul-claro) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-social-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: lighthouse-glow 4s ease-in-out infinite alternate;
}

.cta-social-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.cta-social-text {
    flex: 1;
    color: white;
}

.cta-social-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-social-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 0;
}

.cta-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
    justify-content: center;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-decoration: none;
}

.btn-social.instagram {
    background: linear-gradient(45deg, #E4405F, #C13584, #833AB4);
    color: white;
}

.btn-social.facebook {
    background: #1877F2;
    color: white;
}

.btn-social i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .cta-social-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .cta-social-text h2 {
        font-size: 2rem;
    }
    
    .cta-social-text p {
        font-size: 1.1rem;
    }
    
    .cta-social-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-social {
        min-width: 160px;
    }
}

/* FAQs */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.faq-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    background-color: var(--azul-claro);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--azul-medio);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: white;
}

.faq-answer.open {
    padding: 20px;
    max-height: 500px;
}

/* Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--turquesa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.2rem;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gris-oscuro);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--turquesa);
}

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

/* Footer */
footer {
    background-color: var(--gris-oscuro);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-slogan {
    font-size: 0.9rem;
    color: var(--turquesa);
    font-weight: 400;
    font-style: italic;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--turquesa);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--turquesa);
    color: var(--gris-oscuro);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        width: 280px;
        height: 380px;
        max-width: 280px;
        margin: 0 auto 30px auto;
    }
    
    /* Marca de agua responsive para móviles */
    .about-image::after {
        width: 60px;
        height: 60px;
        opacity: 0.25;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 40px;
        transform: none;
    }
    
    .hero-page {
        height: 50vh;
    }
    
    .hero-content-page h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Logo responsivo */
    .logo {
        gap: 8px;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    /* Hero responsivo */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-centered .hero-buttons {
        align-items: center;
    }
    
    .hero-page {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-content-page h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    /* Navegación responsiva */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
        padding: 15px 0;
        color: #2c5f3a;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #4A90A4;
        border-bottom-color: #4A90A4;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Grid responsivo */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    /* Cards responsivas */
    .content-card {
        border-radius: 12px;
    }
    
    .media-container {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .card-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .card-meta span {
        font-size: 0.8rem;
    }
    
    /* Filtros responsivos */
    .content-filters {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .filter-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
        width: 100%;
        text-align: center;
    }
    
    /* Modal completamente responsivo */
    .modal-content {
        width: 95%;
        height: 95vh;
        margin: 2.5vh auto;
        border-radius: 15px;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .modal-nav {
        gap: 10px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    #modalCounter {
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .media-container-modal {
        max-height: 40vh;
        min-height: 250px;
    }
    
    #modalVideo {
        max-height: 40vh;
    }
    
    #modalImage {
        max-height: 40vh;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    #modalDescription {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    #modalTags {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }
    
    #modalTags span {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* Servicios responsivos */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Footer responsivo */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    /* Animaciones responsivas */
    .content-card:hover {
        transform: translateY(-2px);
    }
    
    .play-overlay,
    .image-overlay {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Responsive Design - Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Grid para tablets */
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Cards en tablets */
    .media-container {
        height: 220px;
    }
    
    .card-content {
        padding: 22px;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    /* Modal en tablets */
    .modal-content {
        width: 90%;
        margin: 3% auto;
    }
    
    .modal-header {
        padding: 25px;
        flex-direction: row;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .media-container-modal {
        max-height: 50vh;
    }
    
    /* Servicios en tablets */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Filtros en tablets */
    .content-filters {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .filter-btn {
        width: auto;
        min-width: 140px;
    }
}

/* Responsive Design - Pantallas pequeñas (móviles muy pequeños) */
@media (max-width: 480px) {
    /* Hero extra pequeño */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-page {
        height: 35vh;
        min-height: 280px;
    }
    
    .hero-content-page h1 {
        font-size: 1.6rem;
    }
    
    /* Cards muy pequeñas */
    .media-container {
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
    
    /* Modal muy pequeño */
    .modal-content {
        width: 98%;
        height: 98vh;
        margin: 1vh auto;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-close {
        top: 8px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .media-container-modal {
        max-height: 35vh;
        min-height: 200px;
    }
    
    .modal-footer {
        padding: 12px 15px;
    }
    
    /* Filtros muy pequeños */
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    /* Navegación muy pequeña */
    .nav-menu a {
        font-size: 1.1rem;
    }
}

/* Responsive Design - Pantallas grandes */
@media (min-width: 1200px) {
    /* Contenedor máximo para pantallas muy grandes */
    .container {
        max-width: 1200px;
    }
    
    /* Grid optimizado para pantallas grandes */
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    /* Cards más espaciadas */
    .content-card {
        border-radius: 18px;
    }
    
    .media-container {
        height: 280px;
    }
    
    .card-content {
        padding: 30px;
    }
    
    .card-content h3 {
        font-size: 1.4rem;
    }
    
    /* Modal optimizado para pantallas grandes */
    .modal-content {
        max-width: 1100px;
        width: 85%;
    }
    
    .media-container-modal {
        max-height: 65vh;
    }
    
    /* Servicios en pantallas grandes */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Design - Pantallas ultra anchas */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Optimizaciones generales para performance */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimización para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .content-card {
        box-shadow: 0 8px 25px rgba(74, 144, 164, 0.15);
    }
    
    .modal-content {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 40px !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .content-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .footer-col {
        min-width: 100%;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse-ring 2s infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    background-color: #22C55E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: rotate(15deg);
}

/* Animación de entrada */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.whatsapp-float {
    animation: bounceIn 0.8s ease-out;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

/* Sección de Consejos y Recomendaciones */
.consejos-section {
    margin: 80px 0 60px;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.3), rgba(240, 253, 255, 0.5));
    border-radius: 20px;
}

.consejos-section h2 {
    margin-bottom: 50px;
    color: var(--azul-oscuro);
    font-size: 2.5rem;
}

.consejos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.consejo-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--turquesa);
}

.consejo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 0 20px rgba(52, 211, 153, 0.2);
}

.consejo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--turquesa), var(--azul-medio));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.consejo-card h4 {
    color: var(--azul-oscuro);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.consejo-card ul {
    list-style: none;
    padding: 0;
}

.consejo-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--gris-claro);
    line-height: 1.6;
}

.consejo-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--turquesa);
    font-weight: bold;
    font-size: 14px;
}

/* Responsive para consejos */
@media (max-width: 768px) {
    .consejos-section {
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .consejos-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .consejos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .consejo-card {
        padding: 25px;
    }
    
    .consejo-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}