/* Estilos Generales */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    color: #333;
    background-color: #f4f4f9;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 2em;
}

.cta-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

.cta-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.feature {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    padding: 30px;
    max-width: 320px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1em;
}

.feature h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    animation: slide-down 0.4s ease-out;
}

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

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover, .close-btn:focus {
    color: black;
}

.policy-text {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.acceptance-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

#privacy-checkbox {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .features {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Estilos para Register.php --- */

.register-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.register-image-panel {
    flex: 1;
    background-image: url('../images/register-background.jpg');
    background-size: cover;
    background-position: center;
}

.register-form-panel {
    flex: 1.5; /* El formulario ocupa un poco más de espacio */
    padding: 40px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-wrapper {
    width: 100%;
    max-width: 800px;
}

.form-wrapper h2 {
    color: #2c3e50;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

.form-wrapper h3 {
    color: #34495e;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
}

.checkbox-group, .consent-group {
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #27ae60;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.message.error {
    background-color: #ffebee;
    color: #c62828;
}

/* Responsive para Register */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
    }
    .register-image-panel {
        min-height: 300px;
        flex: none;
    }
    .register-form-panel {
        padding: 20px;
    }
}

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

.form-group input, .form-group select, .form-group textarea {
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

/* Style for the secondary CTA button */
.cta-button.secondary {
    background-color: #3498db; /* A different color */
    margin-left: 10px; /* Some space between buttons */
}

.cta-button.secondary:hover {
    background-color: #5dade2;
}

/* Login Modal Form Styles */
#login-modal .modal-content {
    max-width: 450px; /* Smaller modal for login */
}

#login-modal .form-group {
    margin-bottom: 15px;
}

#login-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#login-modal .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#login-modal .cta-button {
    width: 100%;
    margin-top: 10px;
}

/* --- Estilos para Directorio.php --- */

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

.directory-header {
    text-align: center;
    margin-bottom: 40px;
}

.directory-header h1 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.directory-header p {
    font-size: 1.1em;
    color: #555;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.company-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.company-card h3 {
    font-size: 1.6em;
    color: #27ae60;
    margin-top: 0;
    margin-bottom: 5px;
}

.company-industry {
    font-weight: bold;
    color: #34495e;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.company-location {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.company-description {
    flex-grow: 1; /* Makes description take available space */
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.company-contact {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.company-contact p {
    margin: 5px 0;
}

.company-contact a {
    color: #3498db;
    text-decoration: none;
}

.company-contact a:hover {
    text-decoration: underline;
}

.company-website-link {
    display: inline-block;
    text-align: center;
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Pushes the button to the bottom */
    transition: background-color 0.3s;
}

.company-website-link:hover {
    background-color: #2980b9;
}

.no-results {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Responsive para Directorio */
@media (max-width: 768px) {
    .company-grid {
        grid-template-columns: 1fr;
    }
}