/* ============================================
   CORPORATIVO NV-F - MAIN STYLES
   ============================================
   
   TABLE OF CONTENTS:
   1. CSS Variables / Custom Properties
   2. Reset & Base Styles
   3. Typography
   4. Layout & Containers
   5. Buttons
   6. Header & Navigation
   7. Hero Section
   8. Sections (General)
   9. Nosotros Section
   10. Acreditaciones Section
   11. Servicios Section
   12. Contacto Section
   13. Footer
   14. Utilities
   15. Responsive Design
   16. Animations (Add your own here!)
   
============================================ */


/* ============================================
   1. CSS VARIABLES / CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors - Green & White Theme */
    --color-primary: #2E7D32;           /* Main green */
    --color-primary-dark: #1B5E20;      /* Darker green */
    --color-primary-light: #4CAF50;     /* Lighter green */
    --color-primary-pale: #E8F5E9;      /* Very light green */
    
    --color-white: #FFFFFF;
    --color-off-white: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Spacing */
    --spacing-xs: 0.25rem;      /* 4px */
    --spacing-sm: 0.5rem;       /* 8px */
    --spacing-md: 1rem;         /* 16px */
    --spacing-lg: 1.5rem;       /* 24px */
    --spacing-xl: 2rem;         /* 32px */
    --spacing-2xl: 3rem;        /* 48px */
    --spacing-3xl: 4rem;        /* 64px */
    --spacing-4xl: 6rem;        /* 96px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;       /* 4px */
    --radius-md: 0.5rem;        /* 8px */
    --radius-lg: 1rem;          /* 16px */
    --radius-xl: 1.5rem;        /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --header-height: 80px;
    --container-max-width: 1200px;
}


/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}


/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-gray-900);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: var(--spacing-md);
}

.highlight {
    color: white;
}


/* ============================================
   4. LAYOUT & CONTAINERS
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--color-gray-500);
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-md);
}

.notify {
  position: fixed;
  bottom: 30px;
  right: 30px;
  min-width: 260px;
  padding: 16px 20px;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 0 2px #45f3ff,
              0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

/* Visible */
.notify.show {
  opacity: 1;
  transform: translateY(0);
}

/* Icono */
.notify-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #45f3ff;
  color: #0f172a;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto */
.notify-text {
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Error (opcional) */
.notify.error {
  box-shadow: 0 0 0 2px #ff4d4d,
              0 10px 30px rgba(0,0,0,0.4);
}

.notify.error .notify-icon {
  background: #ff4d4d;
}



/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-align: center;
}

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

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

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

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

.btn-full {
    width: 100%;
}


/* ============================================
   6. HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: #ffffff;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.logo-text {
    color: #4CAF50;
}

.logo-highlight {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
}

.menu-bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-gray-700);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.fondo{
    position:fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/logo5.jpeg");
    background-size: cover;
    background-position: center;
    filter: brightness(35%);
    transform: scale(1.1);
    z-index: -1;
}


/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    color:white;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-gray-300);
    margin-bottom: var(--spacing-2xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================
   8. SECTIONS (GENERAL)
   ============================================ */
/* Alternating section backgrounds */
.nosotros,
.servicios {
    background-color: var(--color-white);
}

.acreditaciones,
.contacto {
    background-color: var(--color-off-white);
}


/* ============================================
   9. NOSOTROS SECTION
   ============================================ */
   .card-title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.small-desc {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Layout Nosotros */
.nosotros-layout {
  display: grid;
  gap: 0.8rem; /* casi sin espacio */
}


/* Card superior */
.nosotros-top .card {
  min-height: 340px;
}


/* Cards inferiores */
.nosotros-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.nosotros-bottom .card {
  min-height: 260px;
}

@media (max-width: 768px) {
  .nosotros-bottom {
    grid-template-columns: 1fr;
  }

  .nosotros-top .card {
    min-height: auto;
  }
}

/* From Uiverse.io by joe-watson-sbf */ 
.flip-card {
  background-color: transparent;
  width: 350px;
  height: 400px;
  perspective: 1000px;
  font-family: sans-serif;
}

.title {
  font-size: 1.5em;
  font-weight: 900;
  text-align: center;
  margin: 0;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid coral;
  border-radius: 1rem;
}


.flip-card-front {
  background: linear-gradient(120deg, #4CAF50 30%,#2E7D32 70%);
  color: whitesmoke;
}

.flip-card-back {
  background: linear-gradient(120deg, #2E7D32 30%);
  color: white;
  transform: rotateY(180deg);
}

/* From Uiverse.io by SouravBandyopadhyay */ 
.card-title {
  color: white;
  font-size: 1.5em;
  line-height: normal;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.small-desc {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  color:white}
  ;


.small-desc {
  font-size: 1em;
}

.go-corner {
  display: flex;
  align-items: right;
  justify-content: center;
  position: absolute;
  width: 4.6em;
  height: 4.95em;
  overflow: hidden;
  top: 0;
  right: 0;
  border-radius: px;
  background-image: url("../images/Logo3.jpg");
  background-size:contain;      /* Cubre todo el espacio sin deformarse */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que la imagen se duplique */
}


.card {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 14px;
  padding: 2.5em 2em;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 30px;
  background-image: url("../images/img1.jpg");
  background-size: cover;      /* Cubre todo el espacio sin deformarse */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que la imagen se duplique */
  background-color: rgba(0, 0, 0, 0.692);
  background-blend-mode: darken;
}


.card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -0px;
  right: -5px;
  background: linear-gradient(135deg, #1b880c, #2E7D32);
  height: 40px;
  width: 90px;
  border-radius: 50%;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.4s ease-out;
}

.card:hover::before {
  transform: scale(30);
}


.card:hover:before {
  transform: scale(28);
}

.card:hover .small-desc {
  transition: all 0.5s ease-out;
  color: rgba(255, 255, 255, 0.8);
}

.card:hover .card-title {
  transition: all 0.5s ease-out;
  color: #ffffff;
}

/* -------------------------------- 

💡 Styling siblings on hover
🔗 https://codyhouse.co/nuggets/styling-siblings-on-hover

-------------------------------- */
/* 1. Contenedor Flex para que estén en una sola línea */
.radio-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: flex-start; /* Alinea al inicio para el scroll */
  align-items: center;
  overflow-x: auto;            /* Scroll horizontal en móviles */
  padding: 40px 20px;
  width: 100%;
  scrollbar-width: none;       /* Oculta scroll en Firefox */
}

.radio-btns::-webkit-scrollbar {
  display: none;               /* Oculta scroll en Chrome/Safari */
}

/* 2. Estilo base de los botones/logos */
.radio-btns__btn {
  flex: 0 0 auto;
  width: 150px;               /* Ajusta el tamaño según tus logos */
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
}

.radio-btns__btn img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


/* Pero el logo que tiene el mouse ENCIMA mantiene su color y resalta */
.radio-btns .radio-btns__btn:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1); /* Efecto opcional: el logo se agranda un poco */
}

/*-----------------*/
/* ===============================
   RESET BÁSICO
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   VARIABLES RESPONSIVAS
================================ */
:root {
  --carousel-width: 100vw;
  --carousel-height: 100vh;

  --panel-width: 180px;
  --panel-height: 260px;

  --depth: 420px;
  --perspective: 1200px;
}

/* ===============================
   SECCIÓN CONTENEDORA
================================ */
.carousel-3d-section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ===============================
   CONTENEDOR 3D
================================ */
.card-3d {
  position: relative;
  width: var(--carousel-width);
  height: var(--carousel-height);
  transform-style: preserve-3d;
  transform: perspective(var(--perspective));
  animation: giro 20s linear infinite;
}

/* ===============================
   PANEL (CARD)
================================ */
.card-3d .panel {
  position: absolute;
  width: var(--panel-width);
  height: var(--panel-height);
  top: 50%;
  left: 50%;

  transform-style: preserve-3d;
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.199);
}

/* ===============================
   IMÁGENES (MISMO TAMAÑO SIEMPRE)
================================ */
.card-3d .panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* NO se deforman */
  display: block;
  background-color: #4CAF50;
}

/* ===============================
   POSICIÓN DE CADA PANEL
================================ */
.card-3d .panel:nth-child(1)  { transform: translate(-50%, -50%) rotateY(0deg)   translateZ(var(--depth)); }
.card-3d .panel:nth-child(2)  { transform: translate(-50%, -50%) rotateY(36deg)  translateZ(var(--depth)); }
.card-3d .panel:nth-child(3)  { transform: translate(-50%, -50%) rotateY(72deg)  translateZ(var(--depth)); }
.card-3d .panel:nth-child(4)  { transform: translate(-50%, -50%) rotateY(108deg) translateZ(var(--depth)); }
.card-3d .panel:nth-child(5)  { transform: translate(-50%, -50%) rotateY(144deg) translateZ(var(--depth)); }
.card-3d .panel:nth-child(6)  { transform: translate(-50%, -50%) rotateY(180deg) translateZ(var(--depth)); }
.card-3d .panel:nth-child(7)  { transform: translate(-50%, -50%) rotateY(216deg) translateZ(var(--depth)); }
.card-3d .panel:nth-child(8)  { transform: translate(-50%, -50%) rotateY(252deg) translateZ(var(--depth)); }
.card-3d .panel:nth-child(9)  { transform: translate(-50%, -50%) rotateY(288deg) translateZ(var(--depth)); }
.card-3d .panel:nth-child(10) { transform: translate(-50%, -50%) rotateY(324deg) translateZ(var(--depth)); }

/* ===============================
   ANIMACIÓN DE GIRO
================================ */
@keyframes giro {
  from {
    transform: perspective(var(--perspective)) rotateY(0deg);
  }
  to {
    transform: perspective(var(--perspective)) rotateY(-360deg);
  }
}

/* ===============================
   PAUSA AL PASAR EL MOUSE
================================ 
.card-3d:hover {
  animation-play-state: paused;
}
*/
/* ===============================
   RESPONSIVE (MÓVIL)
================================ */
@media (max-width: 600px) {
  :root {
    --panel-width: 140px;
    --panel-height: 200px;
    --depth: 300px;
  }
}




/* ============================================
   10. ACREDITACIONES SECTION
   ============================================ */
.acreditaciones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.acreditacion-card {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.acreditacion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.acreditacion-logo {
    margin-bottom: var(--spacing-lg);
}

.acreditacion-card h4 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.acreditacion-card p {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

:root {
  --primary: #4CAF50;
  --accent: #00c853;
  --text-light: #ffffff;
  --bg-card: #f8f9fa;
}

.acred-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sección Verde (Izquierda) */
.acred-info {
  background: linear-gradient(135deg, var(--primary) 0%, #00251a 100%);
  color: var(--text-light);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  background: var(--accent);
  color: #000;
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.8rem;
  width: fit-content;
  margin-bottom: 1rem;
}

.acred-info h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
}

.stat-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.stat-item .value {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Sección Documento (Derecha) */
.acred-visual {
  background: var(--bg-card);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.document-preview {
  background: #fff;
  border: 1px solid #ddd;
  width: 280px;
  height: 380px;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  display: flex;
  position: relative;
  overflow: hidden;
}

.vertical-text {
  background: #f1f1f1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 1rem;
  font-weight: 900;
  color: #ddd;
  font-size: 2rem;
  transform: rotate(180deg);
}

.doc-content {
  flex-grow: 1;
  text-align: center;
  padding: 1.2rem;
}

.ema-logo {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}


.seal {
  margin-top: 2rem;
  border: 2px double var(--accent);
  color: var(--accent);
  display: inline-block;
  padding: 5px 15px;
  transform: rotate(-15deg);
  font-weight: bold;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .acred-container { grid-template-columns: 1fr; }
  .acred-visual { display: none; } /* Opcional: ocultar visual en móvil para ahorrar espacio */
}

.doc-content h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.doc-content p {
  font-size: 0.85rem;
  color: #555;
}


/* ============================================
   11. SERVICIOS SECTION
   ============================================ */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.servicio-card {
    background-color: var(--color-off-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-200);
}

.servicio-card:hover {
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.servicio-icon {
    margin-bottom: var(--spacing-lg);
}

.servicio-card h4 {
    margin-bottom: var(--spacing-md);
}

.servicio-card p {
    color: var(--color-gray-500);
}

.servicio-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.servicio-link:hover {
    color: var(--color-primary-dark);
}


.cards {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: #1B5E20;
  border-radius: 5px;
  display: flexbox;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  justify-items: center;
}


.cards svg {
  width: 48px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cards:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.cards__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #2E7D32;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cards:hover .cards__content {
  transform: rotateX(0deg);
}

.cards__title {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  font-weight: 700;
}

.cards:hover svg {
  scale: 0;
}

.cards__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}

.servicios-cards {
    padding-bottom: 6rem;  
    padding-top: 2rem;     /* separación arriba y abajo */
}

.card-large {
  width: 550px;
  height: 350px;
}

.card-large .cards__title {
  font-size: 1.6rem;
}

.card-large .cards__description {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card-large {
    width: 100%;
    max-width: 480px;
  }
}

.cards-image {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* CLAVE: no corta la imagen */
  padding: 1rem;
  box-sizing: border-box;
}

.section + .servicios-cards {
  padding-top: 0;
}


.page-hero--servicios {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;

  background-color: transparent;
  background-image: url("../images/logo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.page-hero--servicios .container {
  position: relative;
  z-index: 1;
}

.page-hero--servicios .page-title,
.page-hero--servicios .page-subtitle,
.page-hero--servicios .breadcrumb {
  color: #fff;
}

.page-hero.page-hero--servicios {
  background-color: transparent !important;
}






/* ============================================
   12. CONTACTO SECTION
   ============================================ */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contacto-icon {
    flex-shrink: 0;
}

.contacto-text h4 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.contacto-text p {
    color: var(--color-gray-500);
    margin-bottom: 0;
}

/* Contact Form */
.contacto-form {
    background-color: var(--color-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--color-gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1B5E20 ;
    box-shadow: #1B5E20;
}

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

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 420px;
  border-color: #000000;
}

/* INPUTBOX BASE */
.inputbox {
  position: relative;
  width: 100%;
}

.inputbox input,
.inputbox textarea {
  position: relative;
  width: 100%;
  padding: 20px 10px 10px;
  background: transparent;
  outline: none;
  border: none;
  color: #23242a;
  font-size: 1em;
  letter-spacing: 0.05em;
  transition: 0.5s;
  z-index: 10;
  resize: none;
}

/* LABEL */
.inputbox span {
  position: absolute;
  left: 0;
  padding: 20px 10px 10px;
  font-size: 1em;
  color: #8f8f8f;
  letter-spacing: 0.05em;
  transition: 0.5s;
  pointer-events: none;
}

/* EFECTO FLOAT */
.inputbox input:valid ~ span,
.inputbox input:focus ~ span,
.inputbox textarea:valid ~ span,
.inputbox textarea:focus ~ span {
  color: #000000;
  transform: translateX(-10px) translateY(-34px);
  font-size: 0.75em;
}

/* LINEA */
.inputbox i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #45f3ff;
  border-radius: 4px;
  transition: 0.5s;
  pointer-events: none;
  z-index: 9;
}

.inputbox input:valid ~ i,
.inputbox input:focus ~ i,
.inputbox textarea:valid ~ i,
.inputbox textarea:focus ~ i {
  height: 44px;
}

/* TEXTAREA MÁS GRANDE */
.inputbox.textarea textarea {
  min-height: 140px;
  line-height: 1.4;
}

/* BOTÓN */
.buttonform {
  color: #090909;
  padding: 0.7em 1.7em;
  font-size: 18px;
  border-radius: 0.5em;
  background: #e8e8e8;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
  box-shadow: 6px 6px 12px #c5c5c5,
              -6px -6px 12px #ffffff;
}

.buttonform:active {
  color: #666;
  box-shadow: inset 4px 4px 12px #c5c5c5,
              inset -4px -4px 12px #ffffff;
}

/* Hace que el textarea sea grande */
.inputbox.textarea textarea {
  min-height: 160px;
  line-height: 1.5;
  resize: none;
}

/* Hace que el efecto azul cubra TODO el textarea */
.inputbox.textarea textarea:focus ~ i,
.inputbox.textarea textarea:valid ~ i {
  height: 100%;
}

/* Ajusta la animación del label para textarea */
.inputbox.textarea span {
  top: 0;
}

/* Evita que el efecto se quede solo abajo */
.inputbox.textarea i {
  bottom: 0;
  height: 2px;
}


/* ============================================
   13. FOOTER
   ============================================ */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    color: var(--color-gray-400);
}

.footer-links h4,
.footer-social h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-800);
    border-radius: var(--radius-md);
    color: var(--color-gray-400);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-gray-800);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

:root {
  --color-gray-900: #1a1a1a; /* Definimos la variable por si no la tienes */
}

.cardf {
  width: fit-content;
  min-width: 250px; /* Asegura un ancho mínimo agradable */
  background-color: var(--color-gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* CLAVE PARA RESPONSIVIDAD: permite que bajen de fila en móvil */
  padding: 30px;
  gap: 25px; /* Aumenté un poco el gap para que el "scale" no choque */
  border-radius: 20px;
  margin: 0 auto;
}

.socialContainer {
  width: 40px; /* Un poco más grandes para mejor click en móviles */
  height: 40px;
  background-color: #2e2e2e; /* Color base ligeramente distinto al fondo */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Empezamos con círculo para un look más moderno */
  overflow: hidden;
  transition-duration: 0.3s;
  text-decoration: none;
}

/* Efectos Hover (Tus estilos originales mejorados) */
.containerOne:hover { background-color: #d62976; transform: scale(1.3); border-radius: 12px; }
.containerTwo:hover { background-color: #000000; transform: scale(1.3); border-radius: 12px; }
.containerThree:hover { background-color: #0072b1; transform: scale(1.3); border-radius: 12px; }
.containerFour:hover { background-color: #25d366; transform: scale(1.3); border-radius: 12px; }
.containerFive:hover { background-color: #1188e9; transform: scale(1.3); border-radius: 12px; }

.socialContainer:active {
  transform: scale(0.9);
}

.socialSvg {
  width: 18px;
  fill: white;
}

/* Animación al entrar */
.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Ajuste específico para móviles muy pequeños */
@media (max-width: 400px) {
  .cardf {
    gap: 15px;
    padding: 20px;
  }
}


/* ============================================
   14. UTILITIES
   ============================================ */
/* Icon Placeholders - Replace with real icons */
.icon-placeholder {
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-pale);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
}

.icon-placeholder.small {
    width: 40px;
    height: 40px;
}

.logo-placeholder {
    display: block;
    width: 80px;
    height: 80px;
    background-color: var(--color-primary-pale);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    margin: 0 auto;
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }


/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .acreditaciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    
    .section {
        padding: var(--spacing-3xl) 0;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    /* Grids */
    .nosotros-grid,
    .servicios-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .acreditaciones-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}


/* ============================================
   16. ANIMATIONS
   ============================================
   
   Add your custom animations here!
   
   Examples:
   
   @keyframes fadeIn {
       from { opacity: 0; }
       to { opacity: 1; }
   }
   
   @keyframes slideUp {
       from {
           opacity: 0;
           transform: translateY(30px);
       }
       to {
           opacity: 1;
           transform: translateY(0);
       }
   }
   
   .animate-fade-in {
       animation: fadeIn 0.5s ease forwards;
   }
   
   .animate-slide-up {
       animation: slideUp 0.6s ease forwards;
   }
   
============================================ */
