/* ============================================
   VARIABLES Y RESET
============================================ */
:root {
    --primary-color: #2fcfde;
    --secondary-color: #2f3b51;
    --text-color: #39465d;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray-medium: #e0e4e8;
    --emergency-color: #e74c3c;
}

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

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TIPOGRAFÍA
============================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ============================================
   BOTONES
============================================ */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #28b5c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 207, 222, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #1f2938;
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.hero-image-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 59, 81, 0.85), rgba(47, 207, 222, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-title {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 600px;
}

/* ============================================
   CREDENTIALS SECTION
============================================ */
.credentials-section {
    padding: 80px 0;
    background: var(--white);
}

.credentials-intro {
    text-align: center;
    margin-bottom: 50px;
}

.credentials-intro h2 {
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

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

.badge-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(47, 207, 222, 0.2);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.badge-icon-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.badge-icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.badge-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   SERVICES SECTION
============================================ */
.services-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--white);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    color: var(--text-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-icon-svg {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.service-icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 100px;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-content p {
    margin-bottom: 20px;
}

.about-highlights {
    margin: 30px 0;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.highlight-item {
    margin-bottom: 20px;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.highlight-item p {
    margin: 0;
    color: var(--text-color);
}

/* ============================================
   EMERGENCY SECTION
============================================ */
.emergency-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #2f3b51, #1a2332);
    color: var(--white);
}

.emergency-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.emergency-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.emergency-icon-svg {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.emergency-icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.emergency-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.emergency-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.emergency-notice {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #ffd700;
}

.emergency-notice p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.emergency-notice p:last-child {
    margin-bottom: 0;
}

.emergency-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-call-emergency,
.btn-whatsapp-emergency {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    min-height: 120px;
    line-height: 1.4;
}

.btn-call-emergency {
    background: #e74c3c;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-call-emergency:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.btn-whatsapp-emergency {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-emergency:hover {
    background: #1ebd56;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.btn-icon svg {
    width: 40px;
    height: 40px;
}

.btn-phone {
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

.emergency-conditions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.condition-item {
    background: rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: 8px;
    border-left: 4px solid var(--emergency-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.condition-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.condition-icon-svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 20px;
}

.condition-icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.condition-item h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.condition-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
}

/* ============================================
   LOCATIONS SECTION
============================================ */
.locations-section {
    padding: 80px 0;
    background: var(--white);
}

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

.location-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.location-image {
    height: 250px;
    overflow: hidden;
}

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

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

.location-content {
    padding: 30px;
}

.location-content h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.location-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.location-info {
    margin-bottom: 25px;
}

.location-info p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #28b5c4);
    color: var(--white);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.contact-text {
    text-align: left;
}

.contact-content h2 {
    color: var(--white);
    margin-bottom: 15px;
    text-align: left;
    font-size: 2.5rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: rgba(255,255,255,0.9);
    text-align: left;
    line-height: 1.6;
}

.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    color: #2f3b51;
}

.form-container p,
.form-container label,
.form-container input,
.form-container textarea,
.form-container select {
    color: #2f3b51;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }
    
    /* Ocultar video en móvil */
    .hero-video {
        display: none;
    }
    
    /* Mostrar imagen en móvil */
    .hero-image-mobile {
        display: block;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .credentials-section,
    .services-section,
    .about-section,
    .locations-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .badges-grid,
    .services-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-conditions,
    .emergency-buttons {
        grid-template-columns: 1fr;
    }
    
    .emergency-notice {
        padding: 15px 20px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .btn-call-emergency,
    .btn-whatsapp-emergency {
        padding: 20px 15px;
        font-size: 1rem;
        min-height: 100px;
    }
    
    .btn-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .btn-phone {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}


.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
}

/* Mostrar solo imagen PC por defecto */
.img-pc {
  display: block !important ;
}

.img-movil {
  display: none !important ;
}

/* En móviles, intercambiamos */
@media (max-width: 768px) {
  .img-pc {
    display: none !important ;
  }

  .img-movil {
    display: block !important ;
  }
}
