/* Variables */
:root {
    --primary-color: #0056a6; /* Azul del logo */
    --secondary-color: #2bbcba; /* Turquesa del logo */
    --accent-color: #1a8cff;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #ffffff;
    --light-bg: #f5f9ff;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 10px;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 166, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 188, 186, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 188, 186, 0.3);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 86, 166, 0.4);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: -1;
}

.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: -1;
}

/* Animaciones */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f9ff 0%, #e1f5fe 100%);
    padding: 100px 0 150px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-download {
    margin-top: 10px;
}

.app-download p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.app-links {
    display: flex;
    gap: 15px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.app-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stats-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    gap: 30px;
}

.stat h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Servicios Section */
.servicios {
    padding: 100px 0;
    background-color: var(--bg-color);
}

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

.servicio-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(43, 188, 186, 0.2);
}

.servicio-card .icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.servicio-card .icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.servicio-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.servicio-card p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.btn-solicitar {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-solicitar:hover {
    background: var(--primary-color);
    color: white;
}

/* Nosotros Section */
.nosotros {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
}

.nosotros-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nosotros-image {
    flex: 1;
}

.nosotros-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.nosotros-text {
    flex: 1;
}

.nosotros-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.nosotros-text p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.valores-list {
    margin-top: 15px;
}

.valores-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.valores-list li i {
    color: var(--secondary-color);
}

/* Testimonios Section */
.testimonios {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.testimonios-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonio-card {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonio-card.active {
    display: block;
}

.testimonio-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.rating {
    margin-bottom: 20px;
}

.rating i {
    color: #ffc107;
    font-size: 20px;
    margin: 0 2px;
}

.testimonio-content p {
    color: var(--light-text);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonio-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonio-author p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonios-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--secondary-color);
}

/* Contacto Section */
.contacto {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contacto-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.contacto-form {
    flex: 1.5;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 188, 186, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.contacto-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card .icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.info-card .icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.mapa {
    margin-top: 50px;
}

.mapa h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.mapa iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: linear-gradient(1deg, var(--primary-color) 5%, #fcfcfc 100%);
    color: rgb(255, 255, 255);
    padding: 80px 0 20px;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h3, .footer-services h3, .footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-services h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul li, .footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-services ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-services ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Botón de Whatsapp */
.whatsapp-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Botón de Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats-card {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 20px;
    }
    
    .nosotros-content {
        flex-direction: column;
    }
    
    .contacto-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contacto-info {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Memorial Section */
.memorial {
    padding: 80px 0;
    background: linear-gradient(to right, rgba(0, 86, 166, 0.05), rgba(43, 188, 186, 0.05));
    position: relative;
    overflow: hidden;
  }
  
  .memorial-content {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .memorial-photo {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .photo-frame {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    animation: pulse 3s infinite ease-in-out;
  }
  
  .photo-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 86, 166, 0.3);
    z-index: 1;
  }
  
  .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .memorial-text {
    flex: 2;
    padding-right: 20px;
  }
  
  .memorial-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
  }
  
  .memorial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
  }
  
  .memorial-years {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 20px;
  }
  
  .memorial-description {
    color: var(--light-text);
    line-height: 1.7;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(43, 188, 186, 0.4);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(43, 188, 186, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(43, 188, 186, 0);
    }
  }
  
  .contacto-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
  }
  
  .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary-color);
  }
  
  .info-card .icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: var(--transition);
  }
  
  .info-card:hover .icon {
    background: var(--primary-color);
  }
  
  .info-card .icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
  }
  
  .info-card:hover .icon i {
    color: white;
  }
  
  .info-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  
  .info-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  @media (max-width: 768px) {
    .memorial-content {
      flex-direction: column;
      text-align: center;
    }
  
    .memorial-text {
      padding-right: 0;
    }
  
    .memorial-quote {
      padding-left: 0;
      border-left: none;
      border-bottom: 3px solid var(--secondary-color);
      padding-bottom: 15px;
    }
  }
  